import { ObjCreate } from "../common/ObjCreate";
import { LoaderManager } from "../../../../com/gengine/resource/LoaderManager";
import { Dispatcher } from "../../../mvc/core/Dispatcher";
import { DataEvent } from "../../events/DataEvent";
import { EventName } from "../../mvc/EventName";
import { SArenaFinaRings } from "../../../../Message/Public/SArenaFinaRings";
//class ArenaFinaPanel
    
    export  class ArenaFinaPanel /* flash.display.Sprite */
    {
        constructor()
        {
            
            this.init();
            return;
        }

        /* internal  */init(): void
        {
            ObjCreate.createBg(0, 0, 579, 401, this);
            this._bgFina = new Object /* flash.display.Bitmap */();
            ObjCreate.setObjAttri(this._bgFina, 1, 1, -1, -1, this);
            LoaderManager.instance.load("ArenaFinaBg.jpg", this.onLoaded);
            this.addEventListener(flash.events.Event.ADDED_TO_STAGE, this.onAddToStage);
            return;
        }

        /* internal  */onLoaded(arg1): void
        {
            this._bgFina.bitmapData = arg1["bitmapData"];
            return;
        }

        /* internal  */onAddToStage(arg1: Object /* flash.events.Event */): void
        {
            Dispatcher.dispatchEvent(new DataEvent(EventName.ArenaGetFinaRings));
            return;
        }

        public updateFinaRings(arg1: SArenaFinaRings): void
        {
            return;
        }

        /* internal */ /* var */_bgFina: Object /* flash.display.Bitmap */;
    }
